<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>canvas矩形拖拽移动</title> 
</head>
<body>

<canvas id="myCanvas" style="box-shadow: 0 0 10px rgba(100,200,255,.8);" width=200 height=240 >
您的浏览器不支持 HTML5 canvas 标签。

</canvas>

<script type="text/javascript" src="drag/drag.js"></script>

</body>
</html>